package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * ygabc_book_info对象 ygabc_book_info
 *
 * @author ruoyi
 * @date 2022-06-15
 */
public class YgabcBookInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 书名
     */
    @Excel(name = "书名")
    private String bookName;

    /**
     * 封面
     */
    @Excel(name = "封面")
    private String url;

    /**
     * 类别
     */
    @Excel(name = "类别")
    private String typeId;

    /**
     * ISBN码
     */
    @Excel(name = "ISBN码")
    private String isbn;

    /**
     * 作者
     */
    @Excel(name = "作者")
    private String author;

    /**
     * 出版社
     */
    @Excel(name = "出版社")
    private String press;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private Long num;

    /**
     * 图书梗概
     */
    @Excel(name = "图书梗概")
    private String detail;

    /**
     * 图书类别名称
     */
    @Excel(name = "图书类别名称")
    private YgabcBookType ygabcBookType;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getBookName() {
        return bookName;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAuthor() {
        return author;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public String getPress() {
        return press;
    }

    public void setNum(Long num) {
        this.num = num;
    }

    public Long getNum() {
        return num;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getDetail() {
        return detail;
    }

    public YgabcBookType getYgabcBookType() {
        return ygabcBookType;
    }

    public void setYgabcBookType(YgabcBookType ygabcBookType) {
        this.ygabcBookType = ygabcBookType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("bookName", getBookName())
                .append("url", getUrl())
                .append("typeId", getTypeId())
                .append("isbn", getIsbn())
                .append("author", getAuthor())
                .append("press", getPress())
                .append("num", getNum())
                .append("detail", getDetail())
                .append("ygabcBookType", getYgabcBookType())
                .toString();
    }
}
